package agile.tools;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Person {
	private Date birthDate;
	private Address address;
	private List<Address> allAddresses;
	private Map<String, Address> allAddressesMap;
	private String nullString = null;

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	protected String firstName;
	public String lastName;

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public List<Address> getAllAddresses() {
		return allAddresses;
	}

	public void setAllAddresses(List<Address> allAddresses) {
		this.allAddresses = allAddresses;
	}

	public Map<String, Address> getAllAddressesMap() {
		return allAddressesMap;
	}

	public void setAllAddressesMap(Map<String, Address> allAddressesMap) {
		this.allAddressesMap = allAddressesMap;
	}

	public String getNullString() {
		return nullString;
	}

	public void setNullString(String nullString) {
		this.nullString = nullString;
	}

	public Person() {
		address = new Address();
		firstName = "Ayan";
		lastName = "Dave";
		birthDate = new Date("12/06/1980");
		allAddresses = new ArrayList<Address>();
		allAddresses.add(new Address());
		allAddresses.add(new Address());
		allAddressesMap = new HashMap<String, Address>();
		allAddressesMap.put("AAA", new Address());
		allAddressesMap.put("BBB", new Address());

	}

	public String toString() {
		return firstName + " : " + lastName + " : " + address + " : "
				+ birthDate + " : " + allAddresses + " : " + nullString + " : " + allAddressesMap;
	}
}